home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Util / M / MacDOS 3.0.sit / MacDOS 3.0 ƒ / executables / MacDOS 3.0.rsrc / TEXT_158_OPEN.txt < prev    next >
Encoding:
Text File  |  1995-04-09  |  907 b   |  20 lines

  1. Opens a text file.
  2.  
  3. OPEN [file [varID]] [{/R | /W | /A}]
  4.  
  5.  file   is a filename possibly preceded by a volume and path spec.
  6.         The file can be closed with the command CLOSE.
  7.         With no parameters, OPEN displays the list of opened files.
  8.  varID  is the name of the variable where the fileID is to be stored.
  9.         If it is missing, the fileID is displayed on the screen.
  10.  /R     opens an existing text file to read (see the command READ).
  11.         If the file does not exist, OPEN fails. /R is the default
  12.         when no switch is provided.
  13.  /W     opens a new text file to write (see the command WRITE). If
  14.         the file already exists, OPEN deletes it before opening the
  15.         new one.
  16.  /A     opens an existing file to write past the current EOF (see the
  17.         command WRITE). If the file does not exist, OPEN creates it.
  18.  
  19. Only one of /R, /W, and /A at a time is allowed in a command.
  20.